package com.lxmes.pm.service.impl;

import java.util.List;
import com.lxmes.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.pm.mapper.ATeamUserInfoMapper;
import com.lxmes.pm.domain.ATeamUserInfo;
import com.lxmes.pm.service.IATeamUserInfoService;

/**
 * 团队人员信息Service业务层处理
 * 
 * @author zhangzhiyu
 * @date 2023-04-04
 */
@Service
public class ATeamUserInfoServiceImpl implements IATeamUserInfoService 
{
    @Autowired
    private ATeamUserInfoMapper aTeamUserInfoMapper;

    /**
     * 查询团队人员信息
     * 
     * @param id 团队人员信息主键
     * @return 团队人员信息
     */
    @Override
    public ATeamUserInfo selectATeamUserInfoById(Long id)
    {
        return aTeamUserInfoMapper.selectATeamUserInfoById(id);
    }

    /**
     * 查询团队人员信息列表
     * 
     * @param aTeamUserInfo 团队人员信息
     * @return 团队人员信息
     */
    @Override
    public List<ATeamUserInfo> selectATeamUserInfoList(ATeamUserInfo aTeamUserInfo)
    {
        return aTeamUserInfoMapper.selectATeamUserInfoList(aTeamUserInfo);
    }

    /**
     * 新增团队人员信息
     * 
     * @param aTeamUserInfo 团队人员信息
     * @return 结果
     */
    @Override
    public int insertATeamUserInfo(ATeamUserInfo aTeamUserInfo)
    {
        aTeamUserInfo.setCreateTime(DateUtils.getNowDate());
        return aTeamUserInfoMapper.insertATeamUserInfo(aTeamUserInfo);
    }

    /**
     * 修改团队人员信息
     * 
     * @param aTeamUserInfo 团队人员信息
     * @return 结果
     */
    @Override
    public int updateATeamUserInfo(ATeamUserInfo aTeamUserInfo)
    {
        aTeamUserInfo.setUpdateTime(DateUtils.getNowDate());
        return aTeamUserInfoMapper.updateATeamUserInfo(aTeamUserInfo);
    }

    /**
     * 批量删除团队人员信息
     * 
     * @param ids 需要删除的团队人员信息主键
     * @return 结果
     */
    @Override
    public int deleteATeamUserInfoByIds(Long[] ids)
    {
        return aTeamUserInfoMapper.deleteATeamUserInfoByIds(ids);
    }

    /**
     * 删除团队人员信息信息
     * 
     * @param id 团队人员信息主键
     * @return 结果
     */
    @Override
    public int deleteATeamUserInfoById(Long id)
    {
        return aTeamUserInfoMapper.deleteATeamUserInfoById(id);
    }
}
